<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class DefaultController extends CI_Controller {
  protected function loadView($view, $dataToView = array()){
    $tb = new TemplateBuilder($view);
    $data[ConstantSet::TEMPLATE_PATH] = $tb->getView();
    $data[ConstantSet::DATA_SET] = $dataToView;
    $this->load->view($tb->getTemplate(), $data);
  }
}